%CALCULATEQANDABP_ALLINONE 汇合三种BIC传感器的吸收率，Q值
%@since 2022.4.22
%@update: 首次合并
% 2022-06-02 09:42:54 用来扫参
%    *参数说明*
%       @param
%       @return
%    *使用说明*
%       逐行使用
% ———————————————— POWERED BY YINWEI ————————————————
mode = {'jihuajiao', 'rushejiao', 'Dx', 'Dy', 'H', 'L', 'Sensing'};

switch lower(mode{3})

        %% 极化角度
        %{1
    case 'jihuajiao'
        clc; clear; close all;
        [parameters, Abp_contour, ~] = Spara2QAR_AllInOne_TD([1:16], [0:6:90], [0.8, 1.1], 'ONE', 'NoName', 0, 1);
        Reflectance_contour = [Abp_contour(:, 1), 1 - sqrt(Abp_contour(:, 2:end))];

%}

    case 'rushejiao'
        clc; clear; close all;
        [parameters, Abp_contour, ~] = Spara2QAR_AllInOne([1 3 4 5 2 6:18 20], [0:5:90], [0.9, 0.95], 'Y', 'NoName', 0, 1);
        Reflectance_contour = [Abp_contour(:, 1), 1 - sqrt(Abp_contour(:, 2:end))];
        %         clear Abp_contour

    case 'dx'
        clc; clear; close all;
        [parameters, Abp_contour, ~] = Spara2QAR_AllInOne_TD([1:41], [50:5:250], [0.8, 1.1], 'ONE', 'NoName', 0, 1);
        Reflectance_contour = [Abp_contour(:, 1), 1 - sqrt(Abp_contour(:, 2:end))];
        % clear Abp_contour
    case 'dy'
        clc; clear; close all;
        [parameters, Abp_contour, ~] = Spara2QAR_AllInOne_TD([1:41], [0:5:200], [0.8, 1.1], 'ONE', 'NoName', 0, 1);
    case 'h'
        clc; clear; close all;
        [parameters, Abp_contour, ~] = Spara2QAR_AllInOne_TD([1:16], [15:30], [0.9, 1], 'ONE', 'NoName', 0, 1);
    case 'l'
        clc; clear; close all;
        [parameters, Abp_contour, ~] = Spara2QAR_AllInOne_TD([1:21], [9:1:115], [0.8, 1.1], 'ONE', 'NoName', 0, 1);
    case 'sensing'
        clc; clear; close all;
        [parameters, Abp_contour, ~] = Spara2QAR_AllInOne_TD([1:11], [1:0.1:2], [0.3, 1.1], 'ONE', 'NoName', 0, 1);

end
